package com.csc.banking.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="savingaccount_has_interstrate")

public class SavingAccount_Interestrate implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Date fromDate;
	private Double balance;
	
	@Id
	@ManyToOne 
	@JoinColumn(name="savingAccount")
	private SavingAccount savingaccounts;
	
	@Id
	@ManyToOne
	@JoinColumn(name="interstRateId")
	private SavingInterestRate savinginteresrate;
	
	


	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public SavingAccount getSavingaccounts() {
		return savingaccounts;
	}

	public void setSavingaccounts(SavingAccount savingaccounts) {
		this.savingaccounts = savingaccounts;
	}

	public SavingInterestRate getSavinginteresrate() {
		return savinginteresrate;
	}

	public void setSavinginteresrate(SavingInterestRate savinginteresrate) {
		this.savinginteresrate = savinginteresrate;
	}

	
	
}
